<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

// --------------------------------------------------------------------

if (!function_exists('dump'))
{
    function dump($var = null) {
        #static $dumpId = 0;

        $argList = func_get_args();
        $argNum = func_num_args();

        for($i = 0; $i < $argNum; $i++) {
            // if variable is array or object
            echo '<pre style="margin: 0px; text-align: left; color: #444; padding: 0px; font: 12px/17px Consolas; border: 1px dashed #999; padding: 10px; background: #eee; white-space: pre-wrap;">';
            if(is_array($argList[$i]) or is_object($argList[$i])) {
                print_r($argList[$i]);
            } else {
                // if other type of variable
                var_dump($argList[$i]);
            }
            echo '</pre><br />';
        }
    }
}

// --------------------------------------------------------------------

if (! function_exists('log_action'))
{
	function log_action($process = '', $action = '')
	{
		$CI =& get_instance();
		
		$CI->auth->log_action($process, $action);
	}
}

// --------------------------------------------------------------------

/* End of file debug.php */